<?php session_start();?>

<html>
<head>
<link rel="stylesheet" type="text/css" href="style/style_login.css"/>
</head>

<body id="admin">
<div id="wrap">
<?php
if(isset($_SESSION['name'])){
  echo"<h1>Welcome ".$_SESSION['name']." to Admin Panel</h1>";
}else
    header('Location:login.php');
?>
<a href="logout.php">Log out</a>
</div><!--end #wrap-->

</body>
</html>